package com.example.demo.core;

import com.example.demo.model.Users;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement(name = "BandWidthDatas")
public class BandWidthData {

    private String result;

    private List<Users> datas;

    @XmlElement(name = "Result")
    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @XmlElementWrapper(name = "Users")
    @XmlElement(name = "User")
    public List<Users> getDatas() {
        return datas;
    }

    public void setDatas(List<Users> datas) {
        this.datas = datas;
    }
}
